<!--{if $_G['setting']['search']}-->
	<!--{eval $slist = array();}-->
	<!--{if $_G['fid'] && $_G['forum']['status'] != 3 && $mod != 'group'}-->
        <!--{block slist[forumfid]}-->
        	<li><a href="javascript:;" rel="curforum" class="curtype">{lang search_this_forum}</a></li>
        <!--{/block}-->
    <!--{/if}-->
	<!--{if $_G['setting']['portalstatus'] && $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)}-->
        <!--{block slist[portal]}-->
        	<li><a href="javascript:;" rel="article"{if curscript == 'portal'} class="curtype"{/if}>{lang article}</a></li>
        <!--{/block}-->
    <!--{/if}-->
	<!--{if $_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)}-->
        <!--{block slist[forum]}-->
        	<li><a href="javascript:;" rel="forum"{if (curscript == 'forum' && !$_G['fid']) || (CURSCRIPT == 'home' && in_array($do, array('thread', 'activity', 'poll', 'reward', 'debate', 'trade')))} class="curtype"{/if}>{lang thread}</a></li>
        <!--{/block}-->
    <!--{/if}-->
	<!--{if $_G['setting']['homestatus'] && $_G['setting']['search']['blog']['status'] && ($_G['group']['allowsearch'] & 4 || $_G['adminid'] == 1)}-->
        <!--{block slist[blog]}-->
        	<li><a href="javascript:;" rel="blog"{if curscript == 'home' && $do == 'blog'} class="curtype"{/if}>{lang blog}</a></li>
        <!--{/block}-->
    <!--{/if}-->
	<!--{if $_G['setting']['homestatus'] && $_G['setting']['search']['album']['status'] && ($_G['group']['allowsearch'] & 8 || $_G['adminid'] == 1)}-->
        <!--{block slist[album]}-->
        	<li><a href="javascript:;" rel="album"{if curscript == 'home' && $do == 'album'} class="curtype"{/if}>{lang album}</a></li>
        <!--{/block}-->
    <!--{/if}-->
	<!--{if $_G['setting']['groupstatus'] && $_G['setting']['search']['group']['status'] && ($_G['group']['allowsearch'] & 16 || $_G['adminid'] == 1)}-->
        <!--{block slist[group]}-->
        	<li><a href="javascript:;" rel="group"{if curscript == 'group' || $_G['basescript']=='group'} class="curtype"{/if}>$_G['setting']['navs'][3]['navname']</a></li>
        <!--{/block}-->
    <!--{/if}-->
	<!--{block slist[user]}-->
    	<li><a href="javascript:;" rel="user"{if (curscript == 'home' && !in_array($do, array('blog', 'album', 'thread', 'activity', 'poll', 'reward', 'debate', 'trade'))) || $mod == 'ranklist'} class="curtype"{/if}>{lang users}</a></li>
    <!--{/block}-->
    <!--{block slist[shop]}-->
    	<li><a href="javascript:;" rel="shop"{if curscript == 'shop' || $_G['basescript']=='shop'} class="curtype"{/if}>{lang product}</a></li>
	<!--{/block}-->
<!--{/if}-->
<!--{if $_G['setting']['search'] && $slist}-->
<div id="scbar" class="cl">
	<form id="scbar_form" method="post" onsubmit="searchFocus($('scbar_txt'))" action="search.php?searchsubmit=yes">
		<input type="hidden" name="mod" id="scbar_mod" value="user" />
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<input type="hidden" name="srchtype" value="title" />
		<input type="hidden" name="srhfid" value="$_G[fid]" />
		<input type="hidden" name="srhlocality" value="$_G['basescript']::{CURMODULE}" />
		<table cellspacing="0" cellpadding="0">
			<tr>
				<td class="scbar_txt_td" id="fix_height"><input type="text" name="srchtxt" id="scbar_txt" value="{lang enter_content}" /></td>
				<td class="scbar_type_td"><a href="javascript:;" id="scbar_type" class="showmenu xg1" onclick="showMenu(this.id)" hidefocus="true">{lang users}</a></td>
			</tr>
		</table>
	</form>
    <ul id="scbar_type_menu" class="s_pop" style="display: none;"><!--{echo implode('', $slist);}--></ul>
</div>
<script type="text/javascript">
	initSearchmenu('scbar');
</script>
<!--{/if}-->